package de.tabuma.pm.externalproject.logik;

import de.tabuma.pm.logik.*;
import de.tabuma.pm.externalproject.entity.*;
import java.util.*;

/**
 *
 * @author alefen
 */
public class HiddenParameterFacade {
    public static int create(HiddenParameter hp, String user) {
        return (int) PMF.doCreate(hp, user);
    }

    public static void update(HiddenParameter hp, String user) {
        PMF.doUpdate(hp, user);
    }

    public static HiddenParameter get(int id) {
        return PMF.get(id, new HiddenParameter());
    }

    public static void remove(int id, String user) {
        HiddenParameter hp = get(id);
        PMF.doRemove(hp, user);
    }

    public static List<HiddenParameter> getList(int externalprojectId) {
        String keys[] = new String[1];
        keys[0] = "externalprojectId";
        String values[] = new String[1];
        values[0] = ""+externalprojectId;
        return PMF.get(keys, values, new HiddenParameter());
    }
}

